home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Mac Game Programming Gurus
/
TricksOfTheMacGameProgrammingGurus.iso
/
Tools
/
nShell™ 1.0.3
/
nShell
/
bin
/
yesno
/
yesno.rsrc
/
TEXT_16000_man general.txt
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1994-09-24
|
539 b
|
29 lines
yesno - ask a yes or no question
SYNOPSIS
yesno [-i] [string...]
DESCRIPTION
This command prompts the user for a “y” or “n” response. The string parameters are concatenated and may not exceed a total of 255 characters. If the -i option is used the prompt is read from standard input.
OPTIONS
-i Read the prompt from standard input
RETURN CODES
<0 Error
0 The user selected “y” or “Y”
1 The user selected “n” or “N”
EXAMPLES
% yesno
(y/n): y
%
% yesno “Is this right”
Is this right (y/n): y
%